<!-- 社保编辑 -->
<!--      -->
<!--      -->
<!--      -->
<!--      -->
<!--      -->
<!--      -->
<!--      -->
<!--      -->
<!--      -->
<!--      -->
<!--      -->

<template>
    <el-dialog
        v-model="props.jiXiao"
        title="薪酬绩效编辑"
        @close="close"
        destroy-on-close
        width="70%"
    >
        <el-form
            :inline="true"
            :model="props.bianjichuancan"
            label-position="left"
            label-width="110px"
            style="margin-top: 8px"
        >
            <a-row>
                <a-col :span="6">
                    <el-form-item
                        title="姓名"
                        label="姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名"
                        prop="userName"
                    >
                        <el-input
                            v-model="props.bianjichuancan.userName"
                            placeholder="请输入姓名"
                            clearable
                            style="width: 180px"
                            disabled="true"
                            
                        /> </el-form-item
                ></a-col>
                <a-col :span="6">
                    <el-form-item
                        title="lecc账号"
                        label="lecc账号"
                        prop="leccAccount"
                    >
                        <el-input
                            v-model="props.bianjichuancan.leccAccount"
                            placeholder="请输入lecc账号"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="6">
                    <el-form-item title="岗位名称" label="岗位名称" prop="job">
                        <el-select
                            v-model="props.bianjichuancan.job"
                            placeholder="请选择岗位"
                            clearable
                            style="width: 180px"
                            disabled="true"

                            @keyup.enter="handleQuery"
                        >
                            <el-option
                                v-for="item in props.gangwei"
                                :key="item.dictLabel"
                                :label="item.dictLabel"
                                :value="item.dictValue"
                        /></el-select> </el-form-item
                ></a-col>
                <a-col :span="6">
                    <el-form-item
                        title="身份类别"
                        label="身份类别"
                        prop="identityType"
                    >
                        <el-input
                            v-model="props.bianjichuancan.identityType"
                            placeholder="请输入身份类别"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="6">
                    <el-form-item
                        title="培训期天数(天)"
                        label="培训期天数(天)"
                        prop="trainDays"
                    >
                        <el-input
                            v-model="props.bianjichuancan.trainDays"
                            placeholder="请输入培训期天数"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="6">
                    <el-form-item
                        title="实习期天数(天)"
                        label="实习期天数(天)"
                        prop="practiceDays"
                    >
                        <el-input
                            v-model="props.bianjichuancan.practiceDays"
                            placeholder="请输入实习期天数"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="6">
                    <el-form-item
                        title="转正天数(天)"
                        label="转正天数(天)"
                        prop="workDays"
                    >
                        <el-input
                            v-model="props.bianjichuancan.workDays"
                            placeholder="请输入转正天数"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="6">
                    <el-form-item
                        title="岗位工资(元)"
                        label="岗位工资(元)"
                        prop="jobMoney"
                    >
                        <el-input
                            v-model="props.bianjichuancan.jobMoney"
                            placeholder="请输入岗位工资"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
            </a-row>
            <br />
            <a-row>
                <a-col :span="24">
                    <el-form-item
                        title="补贴&考核"
                        label="补贴&考核"
                        prop="companyMoney"
                    >
                    </el-form-item
                ></a-col>
                <br />
                <a-col :span="24">
                    <el-form-item
                        title="交通费(元)"
                        label="交通费(元)"
                        prop="trafficMoney"
                    >
                        <el-input
                            v-model="props.bianjichuancan.trafficMoney"
                            placeholder="请输入交通费"
                            clearable
                            style="width: 180px"
                            disabled="true"
                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="夜班费-小夜数"
                        label="夜班费-小夜数"
                        prop="smallNightDays"
                    >
                        <el-input
                            v-model="props.bianjichuancan.smallNightDays"
                            placeholder="请输入夜班费-小夜数"
                            clearable
                            style="width: 180px"
                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="夜班费-小夜费"
                        label="夜班费-小夜费"
                        prop="smallNightMoney"
                    >
                        <el-input
                            v-model="props.bianjichuancan.smallNightMoney"
                            placeholder="请输入夜班费-小夜费"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="夜班费-大夜数"
                        label="夜班费-大夜数"
                        prop="bigNightDays"
                    >
                        <el-input
                            v-model="props.bianjichuancan.bigNightDays"
                            placeholder="请输入夜班费-大夜数"
                            clearable
                            style="width: 180px"
                            
                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="夜班费-大夜费"
                        label="夜班费-大夜费"
                        prop="bigNightMoney"
                    >
                        <el-input
                            v-model="props.bianjichuancan.bigNightMoney"
                            placeholder="请输入夜班费-大夜费"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="夜班费小计(元)"
                        label="夜班费小计(元)"
                        prop="nightTotalMoney"
                    >
                        <el-input
                            v-model="props.bianjichuancan.nightTotalMoney"
                            placeholder="请输入夜班费小计"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="夜餐补贴(元)"
                        label="夜餐补贴(元)"
                        prop="nightMealMoney"
                        disabled="true"

                    >
                        <el-input
                            v-model="props.bianjichuancan.nightMealMoney"
                            placeholder="请输入夜餐补贴"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="午餐补贴(元)"
                        label="午餐补贴(元)"
                        prop="noonMealMoney"
                    >
                        <el-input
                            v-model="props.bianjichuancan.noonMealMoney"
                            placeholder="请输入午餐补贴"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="全勤补贴(元)"
                        label="全勤补贴(元)"
                        prop="fullAttendanceMoney"
                    >
                        <el-input
                            v-model="props.bianjichuancan.fullAttendanceMoney"
                            placeholder="请输入全勤补贴"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="热线项目工作年限补贴(元)"
                        label="热线项目工作年限补贴(元)"
                        prop="subsidyYearsMoney"
                        style="
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        "
                    >
                        <el-input
                            v-model="props.bianjichuancan.subsidyYearsMoney"
                            placeholder="请输入热线项目工作年限补贴"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="培训&认证补贴(元)"
                        label="培训&认证补贴"
                        prop="trainAuthenticationMoney"
                        style="
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        "
                    >
                        <el-input
                            v-model="
                                props.bianjichuancan.trainAuthenticationMoney
                            "
                            placeholder="请输入培训&认证补贴"
                            clearable
                            style="width: 180px"
                            
                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="缺勤天数(天)"
                        label="缺勤天数(天)"
                        prop="absenceDays"
                        style="
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        "
                    >
                        <el-input
                            v-model="props.bianjichuancan.absenceDays"
                            placeholder="请输入缺勤天数"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="缺勤扣减(元)"
                        label="缺勤扣减(元)"
                        prop="deductAbsenceMoney"
                        style="
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        "
                    >
                        <el-input
                            v-model="props.bianjichuancan.deductAbsenceMoney"
                            placeholder="请输入缺勤扣减"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="迟到早退扣减(元)"
                        label="迟到早退扣减(元)"
                        prop="deductComeLateMoney"
                        style="
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        "
                    >
                        <el-input
                            v-model="props.bianjichuancan.deductComeLateMoney"
                            placeholder="请输入迟到早退扣减"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="病假扣减(元)"
                        label="病假扣减(元)"
                        prop="deductSickLeaveMoney"
                        style="
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        "
                    >
                        <el-input
                            v-model="props.bianjichuancan.deductSickLeaveMoney"
                            placeholder="请输入病假扣减"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="事假+异常考勤扣减(元)"
                        label="事假+异常考勤扣减(元)"
                        prop="deductCompassionateLeaveMoney"
                        style="
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        "
                    >
                        <el-input
                            v-model="
                                props.bianjichuancan
                                    .deductCompassionateLeaveMoney
                            "
                            placeholder="请输入事假+异常考勤扣减"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="未打卡扣减(元)"
                        label="未打卡扣减(元)"
                        prop="deductMissingCardMoney"
                        style="
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        "
                    >
                        <el-input
                            v-model="
                                props.bianjichuancan.deductMissingCardMoney
                            "
                            placeholder="请输入未打卡扣减"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="质检激励&扣减(元)"
                        label="质检激励&扣减"
                        prop="encourageDeductMoney"
                        style="
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        "
                    >
                        <el-input
                            v-model="props.bianjichuancan.encourageDeductMoney"
                            placeholder="请输入质检激励&扣减"
                            clearable
                            style="width: 180px"
                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="其他(元)"
                        label="其他(元)"
                        prop="otherMoney"
                        style="
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        "
                    >
                        <el-input
                            v-model="props.bianjichuancan.otherMoney"
                            placeholder="请输入其他"
                            clearable
                            style="width: 180px"
                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="住宿补贴(元)"
                        label="住宿补贴(元)"
                        prop="accommodationSubsidyMoney"
                        style="
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        "
                    >
                        <el-input
                            v-model="
                                props.bianjichuancan.accommodationSubsidyMoney
                            "
                            placeholder="请输入住宿补贴"
                            clearable
                            style="width: 180px"
                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="加班费(元)"
                        label="加班费(元)"
                        prop="workOverTimeMoney"
                        style="
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        "
                    >
                        <el-input
                            v-model="props.bianjichuancan.workOverTimeMoney"
                            placeholder="请输入加班费"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="高温补贴(元)"
                        label="高温补贴(元)"
                        prop="highTemperatureMoney"
                        style="
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        "
                    >
                        <el-input
                            v-model="props.bianjichuancan.highTemperatureMoney"
                            placeholder="请输入高温补贴"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <br />
                <br />

                <a-col :span="24">
                    <el-form-item
                        title="绩效得分(分)"
                        label="绩效得分(分)"
                        prop="performanceGrade"
                        label-width="110px"
                    >
                        <el-input
                            v-model="props.bianjichuancan.performanceGrade"
                            placeholder="请输入绩效得分"
                            clearable
                            style="width: 180px"
                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="绩效工资(元)"
                        label="绩效工资(元)"
                        prop="performanceMoney"
                        label-width="110px"
                    >
                        <el-input
                            v-model="props.bianjichuancan.performanceMoney"
                            placeholder="请输入绩效工资"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="调整项"
                        label="调整项"
                        prop="adjustMoney"
                        label-width="110px"
                    >
                        <el-input
                            v-model="props.bianjichuancan.adjustMoney"
                            placeholder="请输入调整项"
                            clearable
                            style="width: 180px"
                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="应发工资(元)"
                        label="应发工资(元)"
                        prop="shouldPaySalary"
                        label-width="110px"
                    >
                        <el-input
                            v-model="props.bianjichuancan.shouldPaySalary"
                            placeholder="请输入应发工资"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="扣除保险-企业(元)"
                        label="扣除保险企业"
                        prop="deductSocialCompany"
                        label-width="110px"
                    >
                        <el-input
                            v-model="props.bianjichuancan.deductSocialCompany"
                            placeholder="请输入扣除保险-企业"
                            clearable
                            style="width: 180px"
                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="扣除保险-个人(元)"
                        label="扣除保险个人"
                        prop="deductSocialPerson"
                        label-width="110px"
                    >
                        <el-input
                            v-model="props.bianjichuancan.deductSocialPerson"
                            placeholder="请输入扣除保险-个人"
                            clearable
                            style="width: 180px"
                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="扣除公积金-企业(元)"
                        label="扣除公积金企业"
                        prop="deductAccumulationFundCompany"
                        label-width="110px"
                    >
                        <el-input
                            v-model="
                                props.bianjichuancan
                                    .deductAccumulationFundCompany
                            "
                            placeholder="请输入扣除公积金-企业"
                            clearable
                            style="width: 180px"
                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="扣除公积金-个人(元)"
                        label="扣除公积金个人"
                        prop="deductAccumulationFundPerson"
                        label-width="110px"
                    >
                        <el-input
                            v-model="
                                props.bianjichuancan
                                    .deductAccumulationFundPerson
                            "
                            placeholder="请输入扣除公积金-个人"
                            clearable
                            style="width: 180px"
                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="实发工资(元)"
                        label="实发工资(元)"
                        prop="realSalary"
                        label-width="110px"
                    >
                        <el-input
                            v-model="props.bianjichuancan.realSalary"
                            placeholder="请输入实发工资"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
                <a-col :span="24">
                    <el-form-item
                        title="含税额(*1.06)"
                        label="含税额(*1.06)"
                        prop="includeTaxMoney"
                        label-width="110px"
                    >
                        <el-input
                            v-model="props.bianjichuancan.includeTaxMoney"
                            placeholder="请输入含税额(*1.06)"
                            clearable
                            style="width: 180px"
                            disabled="true"

                        /> </el-form-item
                ></a-col>
            </a-row>
        </el-form>
        <template #footer>
            <span class="dialog-footer">
                <el-button color="#3175BE" @click="saveRow"> 保存 </el-button>
                <el-button color="#CC3339" @click="close">取消</el-button>
            </span>
        </template>
    </el-dialog>
</template>
<script setup>
import { watch, ref } from 'vue';
import { getBanzu } from '@/api/socialSecurity/index';
const props = defineProps({
    jiXiao: Boolean,
    bianjichuancan: Object,
    yewu: Array,
    gangwei: Array,
});
const banzu = ref([]);
const handleSelectChange = (value) => {
    if (value) {
        var params = {
            businessValue: value,
        };
        //班组
        getBanzu(params).then((res) => {
            console.log(res.data);
            banzu.value = res.data;
        });
    } else {
        banzu.value = [];
    }
};
const emit = defineEmits(['searchBtn', 'saveRow', 'close']);
//保存
const saveRow = () => {
    emit('saveRow', props.bianjichuancan);
};

//取消
const close = () => {
    emit('close');
};
</script>
<style></style>
